﻿using HYQY_Core.Entities.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HYQY_App.Applet.Dtos
{
    /// <summary>
    /// 小程序点单Dto
    /// </summary>
    public class ClassifyDto
    {
        /// <summary>
        /// 获取点单类目
        /// </summary>
        public class AppletSelectCategoryListOutPut
        {
            /// <summary>
            /// 类目id
            /// </summary>
            public int Id { get; set; }

            /// <summary>
            /// 类目名称
            /// </summary>
            public required string Name { get; set; }

            /// <summary>
            /// 排序
            /// </summary>
            public int Sort { get; set; }
        }

        /// <summary>
        /// 获取商品列表
        /// </summary>
        public class AppletSelectWareListOutPut
        {
            /// <summary>
            /// 类目id
            /// </summary>
            public int CategoryId { get; set; }

            /// <summary>
            /// 类目名称
            /// </summary>
            public required string Name { get; set; }

            /// <summary>
            /// 商品详情信息
            /// </summary>

            public List<AppletWareInfos> WareInfos { get; set; }
        }

        public class AppletWareInfos
        {
            /// <summary>
            /// 商品编码
            /// </summary>
            public string WareCode { get; set; }

            /// <summary>
            /// 商品名称
            /// </summary>
            public required string WareName { get; set; }

            /// <summary>
            /// 商品详情
            /// </summary>
            public required string WareDetail { get; set; }

            /// <summary>
            /// 商品价格
            /// </summary>
            public decimal Price { get; set; }

            /// <summary>
            /// 类目id
            /// </summary>
            public int CategoryId { get; set; }

            /// <summary>
            /// 图片路径
            /// </summary>
            public string Path { get; set; }

            /// <summary>
            /// 类型
            /// </summary>
            public string CategoryName { get; set; }

            /// <summary>
            /// 是否设置到分类
            /// </summary>
            public bool IsClassify { get; set; }

            /// <summary>
            /// 是否设置到猜你喜欢
            /// </summary>
            public bool IsGuessWhatYouLike { get; set; }

            /// <summary>
            /// 创建时间
            /// </summary>
            public DateTime? CreateTime { get; set; }

            /// <summary>
            /// 创建人
            /// </summary>
            public string CreateMan { get; set; }

            /// <summary>
            /// 修改时间
            /// </summary>
            public DateTime? UpdateTime { get; set; }

            /// <summary>
            /// 修改人
            /// </summary>
            public string UpdateMan { get; set; }

            /// <summary>
            /// 库存
            /// </summary>
            public long Stock { get; set; }

            /// <summary>
            /// 销量
            /// </summary>
            public long SalesVolume { get; set; }
        }

        public class AppletSelectWareListResp : ResponseStatus
        {
            public List<AppletSelectWareListOutPut> List { get; set; }

            public int Total { get; set; }
        }
    }
}
